package com.ly.mpayment.persist.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "sys_config")
public class SysConfig {

	private String configId;
	private String attr;
	private String attrValue;
	private String describes;

	public SysConfig() {
	}

	public SysConfig(String configId, String attr, String attrValue, String describes) {
		this.configId = configId;
		this.attr = attr;
		this.attrValue = attrValue;
		this.describes = describes;
	}

//	@Id
//	@GeneratedValue(generator = "uuid")
//	@GenericGenerator(name = "uuid", strategy = "uuid")
//	@Column(name = "config_id", unique = true, nullable = false, length=36)


	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "config_id", unique = true, nullable = false, length = 32)
	public String getConfigId() {
		return configId;
	}

	public void setConfigId(String configId) {
		this.configId = configId;
	}

	@Column(name = "attr")
	public String getAttr() {
		return attr;
	}

	public void setAttr(String attr) {
		this.attr = attr;
	}

	@Column(name = "attr_value")
	public String getAttrValue() {
		return attrValue;
	}

	public void setAttrValue(String attrValue) {
		this.attrValue = attrValue;
	}

	@Column(name = "describes")
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

}
